﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>EatLime Media Player</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body onload="executeScript();">
<h3>EatLime Media Player</h3>
<script type="text/javascript" src="swfobject.js"></script>
<table width="100%" border="0" cellspacing="2" cellpadding="3">
  <tr>
    <td valign="top" width="460"><div id="player"><a href="http://get.adobe.com/flashplayer/">Get the Flash Player</a> to see this player.</div></td>
    <td valign="top" width="*" align="center"><textarea name="player_script" id="player_script" wrap="hard" style="width:98%; height:338px; font-size:12px;">var so = new SWFObject("player.swf","ply","560","370","9");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam('wmode', 'opaque');

so.addVariable("file", "http://www.twitvid.com/playVideo_CADF4/token_2e0834bfc571b6a240980a576b3d9114");
so.addVariable("streamer", "lighttpd");
so.addVariable("type", "video");

so.addVariable("streaming", "1");

so.addVariable("autostart", "true");

so.addVariable("logo", "logo.png");
so.addVariable("image", "preview.jpg");

so.write("player");
</textarea>
      <br />
      <input type="button" value="Execute" onclick="executeScript();" style=" height:24px; font-weight:bold;" /></td>
  </tr>
</table>
<div id="tracer" style="border:1px solid #CCC;margin-top:20px;"></div>
<script type="text/javascript">
var s1 = new SWFObject("Tracer.swf","ply","100%","300","9");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.write("tracer");

function executeScript() {
	var code = document.getElementById("player_script");
	var script = code.value;
	script = script.replace(/\r\n/g, "");
	window.eval(script);
}
</script>
</body>
</html>
